#!/bin/sh

while test $# -gt 0; do
  case "$1" in
  -*=*) optarg=`echo "$1" | LC_ALL="C" sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) optarg= ;;
  esac

  case $1 in
    --version)
      echo 1.2.14
      ;;
    --cflags)
      echo -I$SDCELL/include
      ;;
    --libs)
      echo -L$SDCELL -lsdl -L$CELL_SDK/target/ppu/lib -L$CELL_SDK/target/ppu/lib/PSGL/RSX/opt -lPSGLFX -lPSGL -lPSGLU -lm -lnet_stub -lfs_stub -lio_stub -lsysutil_stub -lsysmodule_stub -lgcm_cmd -lresc_stub -lgcm_sys_stub -laudio_stub -lz -lpthread -lspurs_stub -lmstreamThreadMP3
      ;;
    --static-libs)
#    --libs|--static-libs)
      echo -L$SDCELL -lsdl -L$CELL_SDK/target/ppu/lib -L$CELL_SDK/target/ppu/lib/PSGL/RSX/opt -lPSGLFX -lPSGL -lPSGLU -lm -lnet_stub -lfs_stub -lio_stub -lsysutil_stub -lsysmodule_stub -lgcm_cmd -lresc_stub -lgcm_sys_stub -laudio_stub -lz -lpthread -lspurs_stub -lmstreamThreadMP3
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done
